package com.wyzz.hr.dao.impl;

import org.hibernate.Query;
import org.hibernate.Session;

import com.wyzz.hr.dao.IEmpSalaryAcctitemsDao;
import com.wyzz.hr.hibernate.impl.HibernateUtil;

public class EmpSalaryAcctitemsDaoImpl extends HibernateUtil implements
		IEmpSalaryAcctitemsDao {

	public EmpSalaryAcctitemsDaoImpl() {
	}

	public Object loadObjectByEsaId(String hql) {
		Session session = getSession();
		Query query = session.createQuery(hql);
		return query.uniqueResult();
	}
}
